package com.java.tutorials.jdk7.diamondoperator;
import java.util.ArrayList;
import java.util.List;
/**
 * Created by xuzhike on 2016/1/23.
 * http://www.java2s.com/Code/Java/JDK-7/UsingtheDiamondOperatorwhentypeisnotobvious.htm
 * Using the Diamond Operator when type is not obvious
 */
public class DiamondOperatorTest2 {
    public static void main(String[] args) {

        List arrayList = new ArrayList<>();
        //List<String> arrayList = new ArrayList<>();
        arrayList.add("First");
        arrayList.add("Second");

    }
}
